home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Multimedia / Q-Z / VCR+(app+src).sit / Sources / lookup.c < prev    next >
MacBinary  |  1993-03-16  |  1.1 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Tue Mar 16 12:01:56 1993, modified Tue Mar 16 12:01:56 1993, creator Think C, type ASCII, 517 bytes "lookup.c" , at 0x285 348 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 6c 6f 6f 6b 75 70 | 2e 63 00 00 00 00 00 00 |..lookup|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 02 05 00 | 00 01 5c a7 cb b8 84 a7 |........|..\.....|
|00000060| cb b8 84 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6e 27 00 00 |........|....n'..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 56 43 52 70 6c 75 |#include| "VCRplu|
|00000090| 73 2e 68 22 0d 0d 65 78 | 74 65 72 6e 09 75 6e 73 |s.h"..ex|tern.uns|
|000000a0| 69 67 6e 65 64 20 6c 6f | 6e 67 09 73 74 61 72 74 |igned lo|ng.start|
|000000b0| 5b 34 38 30 5d 2c 20 6c | 65 6e 67 5b 34 38 30 5d |[480], l|eng[480]|
|000000c0| 20 3b 0d 0d 2f 2a 20 74 | 68 65 20 35 31 32 2d 65 | ;../* t|he 512-e|
|000000d0| 6e 74 72 79 20 74 61 62 | 6c 65 73 20 6f 66 20 73 |ntry tab|les of s|
|000000e0| 74 61 72 74 69 6e 67 20 | 74 69 6d 65 20 61 6e 64 |tarting |time and|
|000000f0| 20 70 67 6d 20 64 75 72 | 61 74 69 6f 6e 20 2a 2f | pgm dur|ation */|
|00000100| 0d 76 6f 69 64 09 6c 6f | 6f 6b 75 70 28 6c 6f 6e |.void.lo|okup(lon|
|00000110| 67 20 69 2c 20 75 6e 73 | 69 67 6e 65 64 20 6c 6f |g i, uns|igned lo|
|00000120| 6e 67 20 2a 6f 75 74 74 | 69 6d 65 2c 20 75 6e 73 |ng *outt|ime, uns|
|00000130| 69 67 6e 65 64 20 6c 6f | 6e 67 20 2a 6f 75 74 64 |igned lo|ng *outd|
|00000140| 75 72 29 0d 7b 0d 09 73 | 74 61 74 69 63 09 6c 6f |ur).{..s|tatic.lo|
|00000150| 6e 67 20 09 69 6e 69 74 | 69 61 6c 69 7a 65 72 20 |ng .init|ializer |
|00000160| 3d 20 30 3b 0d 0d 09 6c | 6f 6e 67 20 09 6a 2c 20 |= 0;...l|ong .j, |
|00000170| 73 3b 0d 0d 09 69 66 28 | 28 69 20 3e 3d 20 34 38 |s;...if(|(i >= 48|
|00000180| 30 29 20 7c 7c 20 28 69 | 20 3c 20 30 29 29 0d 09 |0) || (i| < 0))..|
|00000190| 09 53 65 74 44 54 65 78 | 74 28 31 39 2c 20 22 5c |.SetDTex|t(19, "\|
|000001a0| 70 49 6c 6c 65 67 61 6c | 20 74 61 62 6c 65 20 69 |pIllegal| table i|
|000001b0| 6e 64 65 78 21 22 29 3b | 0d 09 65 6c 73 65 0d 09 |ndex!");|..else..|
|000001c0| 7b 0d 09 09 2a 6f 75 74 | 74 69 6d 65 20 3d 20 28 |{...*out|time = (|
|000001d0| 73 74 61 72 74 5b 69 5d | 29 20 3b 0d 09 09 2a 6f |start[i]|) ;...*o|
|000001e0| 75 74 64 75 72 20 3d 20 | 28 6c 65 6e 67 5b 69 5d |utdur = |(leng[i]|
|000001f0| 29 20 3b 0d 09 7d 0d 0d | 09 69 66 28 20 28 2a 6f |) ;..}..|.if( (*o|
|00000200| 75 74 74 69 6d 65 20 3d | 3d 20 49 4e 56 41 4c 49 |uttime =|= INVALI|
|00000210| 44 29 20 7c 7c 20 28 2a | 6f 75 74 64 75 72 20 3d |D) || (*|outdur =|
|00000220| 3d 20 49 4e 56 41 4c 49 | 44 29 20 29 0d 09 7b 0d |= INVALI|D) )..{.|
|00000230| 09 09 53 65 74 44 54 65 | 78 74 28 31 39 2c 20 22 |..SetDTe|xt(19, "|
|00000240| 5c 70 4f 6f 70 73 2c 20 | 49 27 6d 20 6d 69 73 73 |\pOops, |I'm miss|
|00000250| 69 6e 67 20 61 6e 20 65 | 6e 74 72 79 21 22 29 3b |ing an e|ntry!");|
|00000260| 0d 09 09 2a 6f 75 74 74 | 69 6d 65 20 3d 20 30 3b |...*outt|ime = 0;|
|00000270| 0d 09 09 2a 6f 75 74 64 | 75 72 20 3d 20 30 3b 0d |...*outd|ur = 0;.|
|00000280| 09 7d 0d 7d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |.}.}....|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 01 00 00 00 01 16 | 00 00 00 16 00 00 00 46 |........|.......F|
|00000310| 61 00 62 63 64 65 66 67 | 68 69 6a 6b 6c 6d 6e 6f |a.bcdefg|hijklmno|
|00000320| 70 71 72 73 74 75 76 77 | 78 79 7a 7b 7c 7d 7e 7f |pqrstuvw|xyz{|}~.|
|00000330| 08 6c 6f 6f 6b 75 70 2e | 63 00 02 00 00 00 50 61 |.lookup.|c.....Pa|
|00000340| 72 74 53 49 54 78 00 00 | 00 00 00 00 00 00 00 01 |rtSITx..|........|
|00000350| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 a9 7e a4 27 00 00 | 00 00 00 00 01 5c ce cf |...~.'..|.....\..|
|00000380| d0 d1 d2 d3 d4 d5 d6 d7 | d8 d9 da db dc dd de df |........|........|
|00000390| e0 e1 00 00 00 00 0f 40 | 10 00 00 0f 00 00 00 ff |.......@|........|
|000003a0| 0b a9 83 81 10 00 0d 4f | 00 00 00 58 00 00 08 e2 |.......O|...X....|
|000003b0| 00 00 08 72 00 00 00 77 | 00 00 00 00 01 00 01 55 |...r...w|.......U|
|000003c0| 81 55 01 55 00 00 00 00 | 00 00 00 04 00 00 00 00 |.U.U....|........|
|000003d0| 00 01 07 8c 00 00 00 00 | 00 06 00 01 00 00 fd d0 |........|........|
|000003e0| fc 66 0d 0c 0f 9c 00 01 | fd c4 fc 4a 0d 22 0f c0 |.f......|...J."..|
|000003f0| 00 03 00 00 03 a5 03 a5 | 03 a5 03 a5 03 a5 03 a5 |........|........|
|00000400| 00 00 00 04 00 06 00 04 | 00 00 00 0a 00 09 06 47 |........|.......G|
|00000410| 65 6e 65 76 61 00 00 00 | 01 00 00 00 01 16 00 00 |eneva...|........|
|00000420| 00 16 00 00 00 46 00 43 | a4 7c 1e 1e 00 00 00 1c |.....F.C|.|......|
|00000430| 00 46 00 01 45 54 41 42 | 00 00 00 12 45 46 4e 54 |.F..ETAB|....EFNT|
|00000440| 00 00 00 1e 03 ec ff ff | 00 00 00 00 00 43 a3 48 |........|.....C.H|
|00000450| 03 eb ff ff 00 00 00 08 | 00 43 a2 bc 00 00 00 00 |........|.C......|
|00000460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+